import { defineStore } from "pinia";
import { getBanner } from "../utils/api";

export const useBannerStore = defineStore({
  id: "banner",
  state: () => {
    return {
      bannerList: [] as any[],
    };
  },
  getters: {},
  actions: {
    async actionBanner() {
      this.bannerList = await getBanner();
    },
  },
});
